package kt.com.bilin.coin.ui.activity

import com.alibaba.android.arouter.facade.annotation.Route
import com.bilin.coin.R
import kotlinx.android.synthetic.main.activity_image_show.*
import kt.com.bilin.coin.common.PATH_IMAGE_SHOW
import kt.com.bilin.coin.helper.InjectBundle

@Route(path = PATH_IMAGE_SHOW)
class ImageShowActivity : BaseActivity(R.layout.activity_image_show) {
    companion object {
        const val IMAGE_RES_ID = "mImageResId"
        const val TITLE = "title"
    }

    private val mImageResId: Int by InjectBundle()
    private val title: String by InjectBundle()

    override fun initView() {
        titleView.titleStr = title
        ivImage.setImageResource(mImageResId)
    }
}